package com.ruoyi.order.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单对象 tb_order
 * 
 * @author 12692
 * @date 2023-06-26
 */
public class TbOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单ID */
    private String orderId;

    /** 司机ID */
    @Excel(name = "司机ID")
    private String driverId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private String userId;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderNumber;

    /** 里程费 */
    @Excel(name = "里程费")
    private BigDecimal orderMileageMoney;

    /** 金额 */
    @Excel(name = "金额")
    private BigDecimal orderMoney;

    /** 优惠卷金额 */
    @Excel(name = "优惠卷金额")
    private BigDecimal orderRedPacket;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderCreateTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderEndTime;

    /** 起点 */
    @Excel(name = "起点")
    private String orderOrigin;

    /** 终点 */
    @Excel(name = "终点")
    private String orderDestination;

    /** 距离（公里） */
    @Excel(name = "距离", readConverterExp = "公=里")
    private Long orderDistance;

    /** 时长 */
    @Excel(name = "时长")
    private Long orderDuration;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private Long orderStatus;

    public void setOrderId(String orderId) 
    {
        this.orderId = orderId;
    }

    public String getOrderId() 
    {
        return orderId;
    }
    public void setDriverId(String driverId) 
    {
        this.driverId = driverId;
    }

    public String getDriverId() 
    {
        return driverId;
    }
    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }
    public void setOrderNumber(String orderNumber) 
    {
        this.orderNumber = orderNumber;
    }

    public String getOrderNumber() 
    {
        return orderNumber;
    }
    public void setOrderMileageMoney(BigDecimal orderMileageMoney)
    {
        this.orderMileageMoney = orderMileageMoney;
    }

    public BigDecimal getOrderMileageMoney()
    {
        return orderMileageMoney;
    }
    public void setOrderMoney(BigDecimal orderMoney) 
    {
        this.orderMoney = orderMoney;
    }

    public BigDecimal getOrderMoney() 
    {
        return orderMoney;
    }
    public void setOrderRedPacket(BigDecimal orderRedPacket) 
    {
        this.orderRedPacket = orderRedPacket;
    }

    public BigDecimal getOrderRedPacket() 
    {
        return orderRedPacket;
    }
    public void setOrderCreateTime(Date orderCreateTime) 
    {
        this.orderCreateTime = orderCreateTime;
    }

    public Date getOrderCreateTime() 
    {
        return orderCreateTime;
    }
    public void setOrderEndTime(Date orderEndTime) 
    {
        this.orderEndTime = orderEndTime;
    }

    public Date getOrderEndTime() 
    {
        return orderEndTime;
    }
    public void setOrderOrigin(String orderOrigin) 
    {
        this.orderOrigin = orderOrigin;
    }

    public String getOrderOrigin() 
    {
        return orderOrigin;
    }
    public void setOrderDestination(String orderDestination) 
    {
        this.orderDestination = orderDestination;
    }

    public String getOrderDestination() 
    {
        return orderDestination;
    }
    public void setOrderDistance(Long orderDistance) 
    {
        this.orderDistance = orderDistance;
    }

    public Long getOrderDistance() 
    {
        return orderDistance;
    }
    public void setOrderDuration(Long orderDuration) 
    {
        this.orderDuration = orderDuration;
    }

    public Long getOrderDuration() 
    {
        return orderDuration;
    }
    public void setOrderStatus(Long orderStatus) 
    {
        this.orderStatus = orderStatus;
    }

    public Long getOrderStatus() 
    {
        return orderStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("driverId", getDriverId())
            .append("userId", getUserId())
            .append("orderNumber", getOrderNumber())
            .append("orderMileageMoney", getOrderMileageMoney())
            .append("orderMoney", getOrderMoney())
            .append("orderRedPacket", getOrderRedPacket())
            .append("orderCreateTime", getOrderCreateTime())
            .append("orderEndTime", getOrderEndTime())
            .append("orderOrigin", getOrderOrigin())
            .append("orderDestination", getOrderDestination())
            .append("orderDistance", getOrderDistance())
            .append("orderDuration", getOrderDuration())
            .append("orderStatus", getOrderStatus())
            .toString();
    }
}
